<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<meta name="keywords" content=""/>
<meta name="description" content=""/>
<link type="text/css" href="/statics/css/home/style.css" rel="stylesheet" />
<script src="{JS_PATH}jquery.min.js" type="text/javascript"></script>
<!--<script src="http://tjs.sjs.sinajs.cn/open/api/js/wb.js" type="text/javascript" charset="utf-8"></script>-->

</head>

<body>
<!--header str-->
{template "mycontent","header"}
<!--header end-->


<!--wrap_activity str-->
<div class="wrap_activity">
     <div class="top_body">
          <span></span>
          <strong>�Ƽ��</strong>
          <em>
          <div id="localtime"></div>
<script type="text/javascript">
function showLocale(objD)
{
	var str,colorhead,colorfoot;
	var yy = objD.getYear();
	if(yy<1900) yy = yy+1900;
	var MM = objD.getMonth()+1;
	if(MM<10) MM = '0' + MM;
	var dd = objD.getDate();
	if(dd<10) dd = '0' + dd;
	var hh = objD.getHours();
	if(hh<10) hh = '0' + hh;
	var mm = objD.getMinutes();
	if(mm<10) mm = '0' + mm;
	var ss = objD.getSeconds();
	if(ss<10) ss = '0' + ss;
	var ww = objD.getDay();
	if  ( ww==0 )  colorhead="<font color=\"#FF0000\">";
	if  ( ww > 0 && ww < 6 )  colorhead="<font color=\"#373737\">";
	if  ( ww==6 )  colorhead="<font color=\"#008000\">";
	if  (ww==0)  ww="������";
	if  (ww==1)  ww="����һ";
	if  (ww==2)  ww="���ڶ�";
	if  (ww==3)  ww="������";
	if  (ww==4)  ww="������";
	if  (ww==5)  ww="������";
	if  (ww==6)  ww="������";
	colorfoot="</font>"
	str = colorhead + yy + "-" + MM + "-" + dd + " " + hh + ":" + mm + ":" + ss + "  " + ww + colorfoot;
	return(str);
}
function tick()
{
	var today;
	today = new Date();
	document.getElementById("localtime").innerHTML = showLocale(today);
	window.setTimeout("tick()", 1000);
}
tick();
</script>
          </em>
     </div>
     <div class="main_body">
          <div class="act">
               <dl class="act_two">
                   <dt><span>{$recommendedActivities[0][a_name]}</span><strong><img src="{if $recommendedActivities[0][a_logo]}{$recommendedActivities[0][a_logo]}{elseif $recommendedActivities[0][a_type]==2}/statics/images/activity/{$recommendedActivities[0][g_id]}.jpg{else}/statics/images/mycontent/activity_bg.jpg{/if}" width="275" height="202" /></strong></dt>
                   <dd>
                     <div class="jiage"><b>{$recommendedActivities[0][a_num]}</b><em>���Ѳμ�</em></div>
                     <div class="canjia"><a href="http://www.602.com/activity/{$recommendedActivities[0][a_id]}.html">�����μ�</a></div></dd>
               </dl>    
          </div>
          {loop $recommendedActivities $ra}
          {if $first}
          <div class="act left_d">
               <dl class="act_two">
                   <dt><span>{$ra[a_name]}</span><strong><img src="{if $ra[a_logo]}{$ra[a_logo]}{elseif $ra[a_type]==2}/statics/images/activity/{$ra[g_id]}.jpg{else}/statics/images/mycontent/activity_bg.jpg{/if}" onerror="this.src='/statics/images/mycontent/activity_bg.jpg'"  width="275" height="202" /></strong></dt>
                   <dd><div class="jiage"><b>{$ra[a_num]}</b><em>���Ѳμ�</em></div>
                   <div class="canjia"><a href="http://www.602.com/activity/{$ra[a_id]}.html">�����μ�</a></div></dd>
               </dl>    
          </div>
          {/if}
          {$first++}
          {/loop}
     </div>
</div>
<!--wrap_activity end-->

<!--wrap str-->
<div class="wrap">
     <div class="left">
          {template "mycontent","openlist"}          
          {template "mycontent","contact"}          
     </div>
     
     <div class="right">
     
     
         
       <div class="activity">
              <div class="top_bg">
                   <dl>
                       <dt><i></i>�ʱ����</dt>
                       <dd>
						<form method="get" action="/index.php?m=myactivity&c=index&a=index" id="myform" name="myform">
						<input type="hidden" name="m" value="myactivity"/>
						<input type="hidden" name="c" value="index"/>
						<input type="hidden" name="a" value="index"/>
						<select name="a_type" id="a_type">
							<option value="0">ȫ���</option>
							<option value="1" {if $aType==1} selected='selected' {/if}>�����</option>
							<option value="2" {if $aType==2} selected='selected' {/if}>���׳�</option>
							<option value="3" {if $aType==3} selected='selected' {/if}>ƽ̨�</option>
						</select>
						<select name="g_id" id="g_id">
							<option value="0">ȫ����Ϸ</option>
							<?php 
	            			foreach ($gameList as $g){
								$select = "";
								if($g['g_id'] == $gid){
									$select = " selected='selected'";
								} 
								echo "<option value='" . $g['g_id'] . "' " . $select  . " >".$g["g_name"]."</option>";
							}
	            		?>
						</select>
						</form>
                   </dl>
              </div>
              {loop $activityTimes $kat=>$vats}
              <div class="top_time">{$kat}</div>
              	<?PHP if (count($vats)>0){?>
              	{loop $vats $vat}
              <div class="cont_time">
                  <div class="huodong_main">
                       <div class="huodong">
                           <i></i><span></span><b>HOT ������</b>
                           <div class="huodong_two">
                                <div class="left_h"><strong><img src="{if $vat[a_logo]}{$vat[a_logo]}{elseif $vat[a_type]==2}/statics/images/activity/{$vat[g_id]}.jpg{else}/statics/images/mycontent/activity_bg.jpg{/if}" onerror="this.src='/statics/images/mycontent/activity_bg.jpg'" width="275" height="202" /></strong></div>
                                <div class="right_h">
                                     <ul>
                                         <li><div class="name">{$vat[a_name]}</div></li>
                                         <li><div class="games_name">{$games[$vat[g_id]]}</div></li>
                                         <li><div class="time_name">{$vat[timediff]}</div></li>
                                         <li>{$vat[timebtn]}</li>
                                     </ul>
                                </div>
                           </div>
                       </div>
                  </div>
              </div>
              	{/loop}
              	<?PHP } ?>
              {/loop}
         
        
			
        
         
     </div>
     <div id="pages"> {$pages}</div>
</div>
</div>
<!--wrap end-->
<!--footer str-->
{template "mycontent","footer"}
<!--footer end-->
<script type="text/javascript">
	$(document).ready(function(){
		$("#g_id").bind("change",function(){myform.submit()});
		$("#a_type").bind("change",function(){myform.submit()});
	});
</script>
</body>
</html>